package com.espirit.eap.sa;
public enum FieldPermissionType {
	NONE(0),READ(1),WRITE(2),READWRITE(3);
	int value;
	private FieldPermissionType(int value){
		this.value = value;
	}
	public int toInt(){
		return value;
	}
	public FieldPermissionType fromInt(int value){
		switch(value){
		case 0: return NONE;
		case 1: return READ;
		case 2: return WRITE;
		case 3: return READWRITE;
		default : return NONE;
		}
	}
}
